package com.sz.framework.utils;


import android.content.Context;
import android.support.annotation.ColorInt;
import android.support.annotation.ColorRes;
import android.support.v4.content.ContextCompat;

public class ResourceUtil {
    /**
     * 获取颜色
     * @param rid
     * @return
     */
    @ColorInt
    public static int getColor(Context context,@ColorRes int rid){
        return ContextCompat.getColor(context,rid);
    }
}
